Migrate layout to Typescript#2452
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2452 +/- ##
==========================================
+ Coverage 48.90% 48.93% +0.02%
==========================================
Files 124 124
Lines 5247 5250 +3
Branches 1112 1112
==========================================
+ Hits 2566 2569 +3
- Misses 2373 2376 +3
+ Partials 308 305 -3 ☔ View full report in Codecov by Sentry. |
yucheng11122017
left a comment
There was a problem hiding this comment.
Hi @yiwen101 ! Thank you very much. This looks like excellent work.
One vvv minor nit and I think we should be good to go.
4ac13fa to
ae35f85
Compare
|
@kaixin-hc @itsyme @EltonGohJH @yucheng11122017 This is what I did: Update: issue resolved by simply pressing But still curious which of my steps before is wrong. Thanks. |
|
Hi Yiwen! Instead of git merge master followed by git merge rebase - you should be able to git rebase master, which would properly rebase it off of master. What you did was rebase the last two commits on the same branch - I'm not totally sure what that does TBH, its not a common use and perhaps not an intended one |
Noted, thank you for the guidance. |
Just to add on I think what the interactive rebase did was just to squash the previous 2 commits into the current commit @yiwen101 |
Noted, thank you for the insight! |
This reverts commit f0aca6f.
What is the purpose of this pull request?
work on #1913. Credit to #2164 for some of the works. Did not commit to #2164 to avoid the git rebase issues currently haunting it. Same modification as #2447, but cleaner git history.
Overview of changes:
Update the use of layout manager in Site and Page;
Added two more types: LayoutConfig and PageNjkAssets to avoid any
Fix some nits/bugs? along the way:
in Site:
await this.layoutManager.updateLayouts(filePath)
=>
await this.layoutManager.updateLayouts(filePathArray)
and in Layout.ts
generateDependencies(pageSources.getDynamicIncludeSrc(),
this.includedFiles)
=>
await this.config.externalManager.generateDependencies(
pageSources.getDynamicIncludeSrc(),
this.includedFiles,
this.layoutUserScriptsAndStyles);
}
Anything you'd like to highlight/discuss:
Testing instructions:
Proposed commit message: (wrap lines at 72 characters)
Migrate layout to Typescript
Checklist: ☑️
Reviewer checklist:
Indicate the SEMVER impact of the PR:
At the end of the review, please label the PR with the appropriate label:
r.Major,r.Minor,r.Patch.Breaking change release note preparation (if applicable):